/********************************
 *  Login slider 
 *  FNA 2011
 *******************************/
        var intWidth ,intHeight;
        var position = null;

        /**init function **/
        $(document).ready(init);
        function init() {
            position = new Object();
            position.left = 0;
            position.top = 0;
        }

         /********************customer show login**************************/
        function ShowLogin(parent, url, width, height) {
			var fixHtml = 15;
            if ($("#login-main").is(":hidden")) {
                $container = $('#' + parent);
                url = (url == null) ? '' : url;
                width = (width > 0) ? width : intWidth;
                height = (height > 0) ? height : intHeight;
                position.left = $container.offset().left;
                position.top = $container.offset().top + $container.height()+ fixHtml;
                $("#login-iframe").attr('src', url);
                $(".login-content").css("width", width);
                $(".login-content").css("height", height);
                $(".login-box").css({ top: position.top, left: position.left });
                $("#login-main").slideDown(200);   //en ms
            }
            else {
                $("#login-main").slideUp(200);    //en ms
            }
            return false;
        }